﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:vd="clr-namespace:VirtualDreams.Turnstile;assembly=VirtualDreams.Turnstile"
    xmlns:local="clr-namespace:OttawaTourMap"
    x:Class="OttawaTourMap.TourStartPage"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">
	
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

	<phone:PhoneApplicationPage.FontFamily>
		<StaticResource ResourceKey="PhoneFontFamilyNormal"/>
	</phone:PhoneApplicationPage.FontFamily>
	<phone:PhoneApplicationPage.FontSize>
		<StaticResource ResourceKey="PhoneFontSizeNormal"/>
	</phone:PhoneApplicationPage.FontSize>
	<phone:PhoneApplicationPage.Foreground>
		<StaticResource ResourceKey="PhoneForegroundBrush"/>
	</phone:PhoneApplicationPage.Foreground>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--ScrollViewer Height="745">
                <Grid>
                    <Image x:Name="_1" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="50,50,100,0" Source="Image1.png" Width="250" Height="150" MouseLeftButtonDown="Image_MouseLeftButtonDown"/>
                    <Image x:Name="_2" HorizontalAlignment="Left" Height="150" VerticalAlignment="Top" Width="250" Margin="50,250,100,0" Source="Image2.png" MouseLeftButtonDown="Image_MouseLeftButtonDown"/>
                    <Image x:Name="_3" HorizontalAlignment="Left" Height="150" VerticalAlignment="Top" Width="250" Margin="50,450,100,0" Source="Image3.png" MouseLeftButtonDown="Image_MouseLeftButtonDown"/>
                    <Image x:Name="_4" HorizontalAlignment="Left" Height="150" VerticalAlignment="Top" Width="250" Margin="50,650,100,0" Source="Image4.png" MouseLeftButtonDown="Image_MouseLeftButtonDown"/>
                </Grid>
            </ScrollViewer-->
        <!--ListBox Margin="0,0,-12,0"  Name="TourInfoList"  ItemsSource="{Binding Items}" DataContext="{Binding}" Loaded="TourInfoList_Loaded" SelectionChanged="ListBox_SelectionChanged">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                    <VirtualDreams_Turnstile:Turnstile Margin="8,0,16,23" Grid.Row="1" Name="TourInfoTiles" Loaded="TourInfo_Loaded_1">
                        <StackPanel x:Name="tourstackpanel"  Orientation="Horizontal" Margin="0,0,0,17">
                            <Image Height="100" Width="100" Source="{Binding ThumbNailURI}"/>
                            <StackPanel Width="311">
                                <TextBlock Text="{Binding Title}" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}"/>
                                <TextBlock Text="{Binding Description}" TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextNormalStyle}"/>
                            </StackPanel>
                        </StackPanel>
                    </VirtualDreams_Turnstile:Turnstile>
                </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox-->

        <!--vd:Turnstile ItemsSource="{Binding Items}" DataContext="{Binding}"  x:Name="TourInfoListTiles" Margin="8,8,8,17" Grid.Row="1">
                <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                <Image Height="100" Width="100" Source="{Binding ThumbNailURI}"/>
                <StackPanel Width="311">
                    <TextBlock Text="{Binding Title}" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}"/>
                    <TextBlock Text="{Binding Description}" TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextNormalStyle}"/>
                </StackPanel>
            </StackPanel>
           
        </vd:Turnstile-->
        <Image Margin="-390,-12,-154,12" Grid.RowSpan="2" Source="panoramabackground.jpg" Stretch="UniformToFill" Visibility="{StaticResource PhoneDarkThemeVisibility}" Opacity="0.7"/>


        <!--vd:Turnstile ItemsSource="{Binding Items}" DataContext="{Binding}"  x:Name="TourInfoListTiles" Margin="8,8,8,17" Grid.Row="1">
                <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                <Image Height="100" Width="100" Source="{Binding ThumbNailURI}"/>
                <StackPanel Width="311">
                    <TextBlock Text="{Binding Title}" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}"/>
                    <TextBlock Text="{Binding Description}" TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextNormalStyle}"/>
                </StackPanel>
            </StackPanel>
           
        </vd:Turnstile-->
        <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" d:LayoutOverrides="Height" 
                   FontFamily="Segoe UI" Opacity="{StaticResource PhoneFontSizeExtraExtraLarge}" 
                   FontSize="32" Margin="50,10,10,10" Foreground="#FFF5F9FB" FontWeight="Bold"><Run Text="University "/><Run Text="of Ottawa Tour"/></TextBlock>
        <vd:Turnstile x:Name="TourInfoList" ItemsSource="{Binding Items}" DataContext="{Binding TourList, Mode=OneWay}" 
                      Margin="50,150,8,17"  Loaded="TourInfoList_Loaded_2" Opacity="{StaticResource PhoneDarkThemeOpacity}">
            <vd:Turnstile.ItemTemplate>
                <DataTemplate>
                	<StackPanel Orientation="Horizontal" Margin="0,0,0,17" Loaded="TourInfoList_Loaded_1">
                        <Image Height="100" Width="100" Source="{Binding ThumbNailURI}" MouseLeftButtonDown="Image_MouseLeftButtonDown_1"/>
                		<StackPanel Width="311" MouseLeftButtonDown="Image_MouseLeftButtonDown_1">
                            <TextBlock Foreground="#FF060000" Text="{Binding Title}" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}"/>
                            <TextBlock Foreground="#FF060000" Text="{Binding Description}" TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextNormalStyle}"/>
                		</StackPanel>
                	</StackPanel>
                </DataTemplate>
            </vd:Turnstile.ItemTemplate>

        </vd:Turnstile>
       
        <!--TitlePanel contains the name of the application and page title-->

        <!--ContentPanel - place additional content here-->
    </Grid>

</phone:PhoneApplicationPage>